package com.easylinkin.linkappapi.grid.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easylinkin.linkappapi.grid.entity.GridQrCode;
import com.easylinkin.linkappapi.grid.models.vo.GridQrCodeVO;
import org.apache.ibatis.annotations.Param;

/**
 * 网格二维码管理 Mapper 接口
 *
 * @author 
 * @since 2024-05-27
 */
public interface GridQrCodeMapper extends BaseMapper<GridQrCode> {

    String selectMaxCode();

    void clearGrid(Integer id);

    /**
     * 根据code查询二维码信息
     *
     * @param code
     * @return GridQrCodeVO
     * @author kyj
     * @date 2024/5/31 11:47
     */
    GridQrCodeVO selectOneByCode(@Param("code") String code);
}